package cn.edu.tsinghua.cic.ccss.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.forten.core.entity.rdb.hibernate.HibernateEntityWithCurrentTimeId;
@Entity
@Table(name = "THRS_GBGL_DXQDB")
public class MsgResultOfChekIn extends HibernateEntityWithCurrentTimeId{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2086322293840252369L;

	@Column(name = "JSSJ")
	private Date receiptTime;
	@Column(name ="GB_ID")
	private long cadreId;
	@Column(name = "content")
	private String content;
	public Date getReceiptTime() {
		return receiptTime;
	}
	public void setReceiptTime(Date receiptTime) {
		this.receiptTime = receiptTime;
	}
	public long getCadreId() {
		return cadreId;
	}
	public void setCadreId(long cadreId) {
		this.cadreId = cadreId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + (int) (cadreId ^ (cadreId >>> 32));
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result
				+ ((receiptTime == null) ? 0 : receiptTime.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		MsgResultOfChekIn other = (MsgResultOfChekIn) obj;
		if (cadreId != other.cadreId)
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (receiptTime == null) {
			if (other.receiptTime != null)
				return false;
		} else if (!receiptTime.equals(other.receiptTime))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "MsgResultOfChekIn [receiptTime=" + receiptTime + ", cadreId="
				+ cadreId + ", content=" + content + "]";
	}
	
}
